<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:fragment="accountFields">
    <h2>帐户信息</h2>
    <table>
        <tr>
            <td>名:</td>
            <td>
                <input type="text" name="account.firstName" required="required"
                       th:value="${session.account?.firstName}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_firstname}"></span>-->
            </td>
        </tr>
        <tr>
            <td>姓:</td>
            <td>
                <input type="text" name="account.lastName" required="required"
                       th:value="${session.account?.lastName}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_lastname}"></span>-->
            </td>
        </tr>
        <tr>
            <td>邮箱:</td>
            <td>
                <input type="text" size="40" name="account.email" required="required"
                       th:value="${session.account?.email}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_email}"></span>-->
            </td>
        </tr>
        <tr>
            <td>地址 1:</td>
            <td>
                <input type="text" size="40" name="account.address1" required="required"
                       th:value="${session.account?.address1}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_address1}"></span>-->
            </td>
        </tr>
        <tr>
            <td>地址 2:</td>
            <td>
                <input type="text" size="40" name="account.address2"
                       th:value="${session.account?.address2}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_address2}"></span>-->
            </td>
        </tr>
        <tr>
            <td>城市:</td>
            <td>
                <input type="text" size="40" name="account.city" required="required"
                       th:value="${session.account?.city}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_city}"></span>-->
            </td>
        </tr>
        <tr>
            <td>州:</td>
            <td>
                <input type="text" size="40" name="account.state" required="required"
                       th:value="${session.account?.state}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_state}"></span>-->
            </td>
        </tr>
        <tr>
            <td>邮编:</td>
            <td>
                <input type="text" size="40" name="account.zip" required="required"
                       th:value="${session.account?.zip}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_zip}"></span>-->
            </td>
        </tr>
        <tr>
            <td>国家:</td>
            <td>
                <input type="text" size="40" name="account.country" required="required"
                       th:value="${session.account?.country}"/><br/>
<!--                <span class="error-msg" style="color: red" th:text="${msg_country}"></span>-->
            </td>
        </tr>
    </table>


    <h2>个人资料信息</h2>
    <table>
        <tr>
            <td>语言偏好:</td>
            <td>
                <select name="account.languagePreference">
                    <option value="Chinese">中文</option>
                    <option value="English" selected>英语</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>喜欢的类别:</td>
            <td>
                <select name="account.favouriteCategoryId">
                    <option value="CHEESS">乳酪</option>
                    <option value="CHOCOLATE">巧克力</option>
                    <option value="FRUIT">水果</option>
                    <option value="MUSI">慕斯</option>
                    <option value="NUT">坚果</option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan=2><input type="checkbox" name="account.listOption"> 是否显示喜好</td>
        </tr>
        <tr>
            <td colspan=2><input type="checkbox" name="account.bannerOption"> 是否显示推荐</td>
        </tr>
    </table>

</div>
</body>
</html>